package com.sita.tboard.roadtrust.helper;

import android.content.Context;
import android.content.Intent;

import com.sita.friend.ui.activity.FriendDetailActivity;
import com.sita.tboard.global.LocalConstants;
import com.sita.tboard.ui.activity.ImagePagerActivity;

import java.util.ArrayList;

/**
 * Created by xiaodong on 16/3/28.
 */
public class RtGeneralHelper {
    public static void showPicture(Context context, int position, ArrayList<String> links){
        Intent intent = new Intent(context, ImagePagerActivity.class);
        intent.putExtra(ImagePagerActivity.EXTRA_IMAGE_URLS, links);
        intent.putExtra(ImagePagerActivity.EXTRA_IMAGE_INDEX, position);
        context.startActivity(intent);
    }

    public static void showUser(Context context, String accountId){
        Intent intent = new Intent(context, FriendDetailActivity.class);
        intent.putExtra(LocalConstants.BUNDLE_ACCOUNT_ID, accountId);
        context.startActivity(intent);
    }
}
